﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZCMS.Entities
{
    [Table("Sys_Menu")]
    public class Menu : Entity, IHasCreationTime
    {
        #region Column


        /// <summary>
        /// 是否可用
        /// </summary>
        [Required]
        public virtual bool IsActive { get; set; } // tinyint(1)

        /// <summary>
        /// 父节点Id
        /// </summary>
        public virtual int ParentTid { get; set; } // bigint(20)

        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(100)]
        public virtual string Name { get; set; } // varchar(50)

        /// <summary>
        /// 展示的图标
        /// </summary>
        [MaxLength(100)]

        public virtual string Ico { get; set; } // varchar(100)

        /// <summary>
        /// 连接地址
        /// </summary>
        [MaxLength(100)]
        public virtual string Url { get; set; } // varchar(200)

        /// <summary>
        /// 排序
        /// </summary>
       
        public virtual int? OrderRule { get; set; } // int(11)

        /// <summary>
        /// 等级
        /// </summary>
      
        public virtual int? Level { get; set; } // int(11)

        /// <summary>
        /// 样式
        /// </summary>
        [MaxLength(100)]
        public virtual string Class { get; set; } // varchar(100)

        #endregion


        public DateTime CreationTime { get; set; }
    }
}
